import http from '@/api/index';

enum API {
    GET_PAY_PARAM = '/translate/pay/getPayInfo', //获取支付参数
    GET_ORDER_LIST = '/translate/order/listPayInfo', //获取订单列表
    GET_RIGHTS_LIST = '/translate/order/listRights' //获取支付套餐列表
}

//获取支付参数
export function getPayParam(data: any) {
    return http.post({
        url: API.GET_PAY_PARAM,
        data
    });
}

//获取订单列表
export function getOrderList(data: any) {
    return http.get({
        url: API.GET_ORDER_LIST,
        data
    });
}

//获取支付套餐列表
export function getRightsList() {
    return http.get({
        url: API.GET_RIGHTS_LIST
    });
}
